/*    */ package com.zimbra.cs.client.soap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.DomUtil;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.client.LmcFolder;
/*    */ import org.dom4j.DocumentHelper;
/*    */ import org.dom4j.Element;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcGetFolderRequest
/*    */   extends LmcSoapRequest
/*    */ {
/*    */   private String mFolderID;
/*    */   
/* 33 */   public void setFolderToGet(String f) { this.mFolderID = f; }
/*    */   
/* 35 */   public String getFolderToGet() { return this.mFolderID; }
/*    */   
/*    */   protected Element getRequestXML() {
/* 38 */     Element request = DocumentHelper.createElement(MailConstants.GET_FOLDER_REQUEST);
/* 39 */     if (this.mFolderID != null) {
/* 40 */       Element folder = DomUtil.add(request, "folder", "");
/* 41 */       DomUtil.addAttr(folder, "l", this.mFolderID);
/*    */     }
/* 43 */     return request;
/*    */   }
/*    */   
/*    */ 
/*    */   protected LmcSoapResponse parseResponseXML(Element responseXML)
/*    */     throws ServiceException
/*    */   {
/* 50 */     Element fElem = DomUtil.get(responseXML, "folder");
/* 51 */     LmcFolder f = parseFolder(fElem);
/*    */     
/* 53 */     LmcGetFolderResponse response = new LmcGetFolderResponse();
/* 54 */     response.setRootFolder(f);
/* 55 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/soap/LmcGetFolderRequest.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */